package com.xinbochuang.machine.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinbochuang.machine.admin.domain.MacRoomResourceCount;
import com.xinbochuang.machine.admin.domain.MacRoomResourceView;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 黄晓鹏
 * @date 2020-12-11
 */
public interface MacRoomResourceViewMapper extends BaseMapper<MacRoomResourceView> {

    List<Map<String, Object>> selectMacRoomResourceData(@Param("macId") String macRoomId, @Param("deptId") String s, @Param("macName") String content1);

    /**
     * 机房资源统计
     *
     * @param macIds 数据权限
     * @return 结果
     */
    List<MacRoomResourceCount> selectResourceCount(@Param("macIds") List<String> macIds);

    /**
     * 机房资源统计数量
     *
     * @param macIds 数据权限
     * @return 结果
     */
    Long selectResourceTotal(@Param("macIds") List<String> macIds);
}
